﻿<%@ Page Language="vb" AutoEventWireup="false" MasterPageFile="~/ZakaBackOfficeMaster.Master"
    CodeBehind="ZakaBOTrofeus.aspx.vb" Inherits="ZakaBackOffice.WebForm3" Title="BackOffice" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="FeedBackUserMessage/Mensagem.ascx" TagName="Mensagem" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <table width="100%">
                <tr>
                    <td>
                        <uc1:Mensagem ID="Message" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:GridView ID="gvTrofeus" runat="server" AutoGenerateColumns="False" BackColor="White"
                            BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px" CellPadding="3" Font-Size="7.5"
                            ForeColor="Black" GridLines="None" Width="100%">
                            <Columns>
                                <asp:BoundField DataField="IDTrofeu" HeaderText="IDTrofeu" ReadOnly="True" SortExpression="IDTrofeu" />
                                <asp:BoundField DataField="NomeTrofeu" HeaderText="Nome do Trofeu" ReadOnly="True"
                                    SortExpression="NomeTrofeu" />
                                <asp:BoundField DataField="Vencedor" HeaderText="Vencedor" ReadOnly="True" SortExpression="Vencedor" />
                                <asp:TemplateField>
                                    <ItemTemplate>
                                        <asp:LinkButton ID="lnkEditar" runat="server" CausesValidation="False" CommandArgument='<%#Eval("IDTrofeu") %>'
                                            CommandName="Editar"> <img 
                                        src="icons/icon_alterar.png" style='border-width:0px;' /> Editar</asp:LinkButton>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField>
                                    <ItemTemplate>
                                        <asp:LinkButton ID="lnkApagar" runat="server" CausesValidation="False" CommandArgument='<%#Eval("IDTrofeu") %>'
                                            CommandName="Apagar"> <img 
                                        src="icons/icon_cancel.png" style='border-width:0px;' /> Apagar</asp:LinkButton>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                            <FooterStyle BackColor="#CCCCCC" />
                            <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
                            <SelectedRowStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />
                            <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
                            <AlternatingRowStyle BackColor="#CCCCCC" />
                        </asp:GridView>
                    </td>
                </tr>
                <tr>
                    <td>
                        <cc1:Accordion ID="Accordion2" runat="server" AutoSize="None" ContentCssClass="accordionContent"
                            FadeTransitions="True" HeaderCssClass="accordionHeader" HeaderSelectedCssClass="accordionHeaderSelected"
                            RequireOpenedPane="False" SelectedIndex="1">
                            <Panes>
                                <cc1:AccordionPane ID="accAlterar" runat="server">
                                    <Header>
                                        <asp:Label ID="lblAccAlterar" runat="server"></asp:Label>
                                    </Header>
                                    <Content>
                                        <table>
                                            <tr>
                                                <td>
                                                    <asp:Label ID="Label2" runat="server" Text="Nome do Troféu:"></asp:Label>
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="txtNomeTrofeu" runat="server"></asp:TextBox>
                                                    <textboxwatermarkextender id="TextBoxWatermarkExtender3" runat="server" targetcontrolid="txtNomeTrofeu"
                                                        watermarkcssclass="watermarked" watermarktext="Escreva aqui o nome do troféu.">
                                                </textboxwatermarkextender>
                                                </td>
                                                <td>
                                                    &nbsp;
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <asp:Label ID="Label6" runat="server" Text="Vencedor:"></asp:Label>
                                                </td>
                                                <td>
                                                    <asp:DropDownList ID="ddlVencedor" runat="server">
                                                    </asp:DropDownList>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                </td>
                                                <td>
                                                    <asp:LinkButton ID="lnkGravar" runat="server" CausesValidation="False">
                                                <img src="icons/icon_save.png" style="border-width:0px;" /> Gravar</asp:LinkButton>
                                                    &nbsp;&nbsp;&nbsp;
                                                    <asp:LinkButton ID="lnkCancelar" runat="server" CausesValidation="False">
                                                <img src="icons/icon_cancel.png" style="border-width:0px;" /> Cancelar</asp:LinkButton>
                                                </td>
                                                <td>
                                                </td>
                                            </tr>
                                        </table>
                                    </Content>
                                </cc1:AccordionPane>
                            </Panes>
                        </cc1:Accordion>
                    </td>
                </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
